// npm i koa
const Koa = require('koa')
const app = new Koa()

app.use(async (ctx, next) => {
  ctx.body = 'hello koa2'
  await next()
})

app.listen(3000, () => {
  console.log('服务器在127.0.0.1:3000运行中...')
})